package com.baizhi.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Album {
    private Integer albumId;
    private String albumName;
    private String albumAuthor;
    private String albumTeller;
    private Integer albumEpisode;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date albumDate;
    private String albumContent;
    private String albumImage;
    private Integer albumStar;

    public Integer getAlbumId() {
        return albumId;
    }

    public void setAlbumId(Integer albumId) {
        this.albumId = albumId;
    }

    public String getAlbumName() {
        return albumName;
    }

    public void setAlbumName(String albumName) {
        this.albumName = albumName;
    }

    public String getAlbumAuthor() {
        return albumAuthor;
    }

    public void setAlbumAuthor(String albumAuthor) {
        this.albumAuthor = albumAuthor;
    }

    public String getAlbumTeller() {
        return albumTeller;
    }

    public void setAlbumTeller(String albumTeller) {
        this.albumTeller = albumTeller;
    }

    public Integer getAlbumEpisode() {
        return albumEpisode;
    }

    public void setAlbumEpisode(Integer albumEpisode) {
        this.albumEpisode = albumEpisode;
    }

    public Date getAlbumDate() {
        return albumDate;
    }

    public void setAlbumDate(Date albumDate) {
        this.albumDate = albumDate;
    }

    public String getAlbumContent() {
        return albumContent;
    }

    public void setAlbumContent(String albumContent) {
        this.albumContent = albumContent;
    }

    public String getAlbumImage() {
        return albumImage;
    }

    public void setAlbumImage(String albumImage) {
        this.albumImage = albumImage;
    }

    public Integer getAlbumStar() {
        return albumStar;
    }

    public void setAlbumStar(Integer albumStar) {
        this.albumStar = albumStar;
    }

    public Album(Integer albumId, String albumName, String albumAuthor, String albumTeller, Integer albumEpisode, Date albumDate, String albumContent, String albumImage, Integer albumStar) {
        this.albumId = albumId;
        this.albumName = albumName;
        this.albumAuthor = albumAuthor;
        this.albumTeller = albumTeller;
        this.albumEpisode = albumEpisode;
        this.albumDate = albumDate;
        this.albumContent = albumContent;
        this.albumImage = albumImage;
        this.albumStar = albumStar;
    }

    @Override
    public String toString() {
        return "Album{" +
                "albumId=" + albumId +
                ", albumName='" + albumName + '\'' +
                ", albumAuthor='" + albumAuthor + '\'' +
                ", albumTeller='" + albumTeller + '\'' +
                ", albumEpisode=" + albumEpisode +
                ", albumDate=" + albumDate +
                ", albumContent='" + albumContent + '\'' +
                ", albumImage='" + albumImage + '\'' +
                ", albumStar=" + albumStar +
                '}';
    }

    public Album() {
    }
}
